Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Unkwnown hashes raised exception #606

Merged
merged 1 commit into from
May 10, 2024
Merged

Conversation

hoh
Copy link
Member

@hoh hoh commented Apr 26, 2024

Problem: Many crawlers called URLs that do not exist on CRNs.

The current implementation raises an error when the hash of the VM cannot be found, which fills the logs on Sentry.

Solution: Return an HTTP Not Found status instead.

@hoh hoh force-pushed the hoh-dont-raise-unknown-hash branch from 1590ee3 to d0dcd0c Compare April 26, 2024 10:57
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 88.23529% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 45.17%. Comparing base (c942e27) to head (a6af70b).

Files Patch % Lines
src/aleph/vm/orchestrator/views/__init__.py 55.55% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #606      +/-   ##
==========================================
+ Coverage   44.82%   45.17%   +0.34%     
==========================================
  Files          55       56       +1     
  Lines        5033     5063      +30     
  Branches      589      593       +4     
==========================================
+ Hits         2256     2287      +31     
+ Misses       2654     2653       -1     
  Partials      123      123              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Failed to retrieve llama text: POST 504:

504 Gateway Time-out


The server didn't respond in time.

Problem: Many crawlers called URLs that do not exist on CRNs.

The current implementation raises an error when the hash of the VM cannot be found, which fills the logs on Sentry.

Solution: Return an HTTP Not Found status instead.
@hoh hoh force-pushed the hoh-dont-raise-unknown-hash branch from 031816c to a6af70b Compare May 6, 2024 16:22
@hoh hoh requested a review from nesitor May 6, 2024 16:22
@hoh
Copy link
Member Author

hoh commented May 6, 2024

Hi @nesitor , I added tests and requested a new review ;-)

@hoh hoh merged commit cb0a9f9 into main May 10, 2024
23 checks passed
@Psycojoker Psycojoker deleted the hoh-dont-raise-unknown-hash branch July 24, 2024 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants